home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14434 < prev    next >
Encoding:
Text File  |  1996-08-05  |  995 b   |  34 lines

  1. Path: castle.nando.net!news
  2. From: actuary@nando.net@castle.nando.net (Bill McCarthy)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Small problem with C...
  5. Date: Sun, 14 Apr 1996 11:47:32 -0400
  6. Organization: Not so good, but I'm working on it ;-)
  7. Message-ID: <U4RcxUKSA+pG089yn@castle.nando.net>
  8. References: <4ko44f$jf2@venus.compulink.gr>
  9. NNTP-Posting-Host: grail2219.nando.net
  10.  
  11. In article <4ko44f$jf2@venus.compulink.gr>,
  12. lonewolf@athena.compulink.gr (Costas Vlassis) put down for all to see:
  13.  
  14. >       Well I am taking my first steps with C on my Linux box with GCC 
  15. >2.7.0...
  16. >
  17. >       What I want to do is this :
  18. >
  19. >Make a matrix, 50 x 50 x 8
  20.  
  21. I'm not sure what is your C question.  You could start off with
  22.  
  23.    int matrix[50][50][8];  /* note portability problem */
  24.  
  25.    int main( void )
  26.    {
  27.       /* add your code here */
  28.       return 0;
  29.    }
  30.  
  31. Your next step is to figure out how to work with rand() and srand().
  32. Post if you can't figure that out.  But next time, post a small
  33. complete code sample.
  34.